﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BBB.Valuta
{
    public enum DownloadType
    {
        DBF, XML
    }

    public partial class SelectTypeDownload : Form
    {
        public SelectTypeDownload()
        {
            InitializeComponent();
        }

        public DialogResult ShowDialog(out DownloadType dt)
        {
            DialogResult result = ShowDialog();
            if (dbfRadioButton.Checked)
            {
                dt = DownloadType.DBF;
                return result;
            }
            if (xmlRadioButton.Checked)
            {
                dt = DownloadType.XML;
                return result;
            }
            dt = DownloadType.DBF;
            return result;
        }

        private void loadButton_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }
    }
}
